<?php
require_once('App-Top.php');
require_once('Authorizer.php');
require_once('GenFunctions.php');

// Check if it is Member Mng
if (isset($_SESSION['SESS_USER_TYPE'])) {
    if (!isUserType_Members($_SESSION['SESS_USER_TYPE'])) {
        header("Location: AdminIndex.php");
        exit();
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Member Edit - Confirmation</title>
        <link href="StyleControl.css" rel="stylesheet" type="text/css" />
    </head>
    <body>

        <div id="sidebar">
            <h3>Reports</h3>
            <ul>
                <li><a href="#">Gate List</a></li>
                <li><a href="#">Members List</a></li>
            </ul>


            <?php
            require_once('MenuAdmin.php');
            ?>
        </div>

        <div id="mainbody">
            <h1>Member Edition - Confirmation</h1> <br />

            <form id="editMember" name="editMember" method="POST" action="AdminMemberEditExec.php" class="compactform">
                <fieldset class="clearfix">
                    <legend>Read Only Fields - Click Edit to Modify Them</legend>
                    <br />
                    <div class="twoper">
                        <label for="fname">First Name
                        <input name="fname" type="text" id="fname" readonly="readonly" value="<?php if (isset($_POST['fname'])) { echo $_POST['fname']; } ?>" /></label>


                        <label for="lname">Last Name
                        <input name="lname" type="text" id="lname" readonly="readonly" value="<?php if (isset($_POST['lname'])) { echo $_POST['lname']; } ?>"  /></label>

                    </div>

                    <div class="threeper">
                        <label for="email">Email
                        <input  name="email" type="text" id="email" readonly="readonly" value="<?php if (isset($_POST['email'])) { echo $_POST['email']; } ?>"  /></label>


                        <label for="login">Username
                        <input  name="login" type="text" id="login" readonly="readonly" value="<?php if (isset($_POST['login'])) { echo $_POST['login']; } ?>"  /></label>


                        <label for="password">Password
                        <input   name="password" type="text" id="password" readonly="readonly" value="<?php if (isset($_POST['password'])) { echo $_POST['password']; } ?>"  /></label>

                    </div>

                    <div class="threeper">
                        <label for="cphone">Cell Phone
                        <input name="cphone" type="text" id="cphone" readonly="readonly" value="<?php if (isset($_POST['cphone'])) { echo $_POST['cphone']; } ?>"  /></label>


                        <label for="hphone">Home Phone
                        <input name="hphone" type="text" id="hphone" readonly="readonly" value="<?php if (isset($_POST['hphone'])) { echo $_POST['hphone']; } ?>"  /> <small>(Optional)</small> </label>


                        <label for="ophone">Office Phone
                        <input name="ophone" type="text" id="ophone" readonly="readonly" value="<?php if (isset($_POST['ophone'])) { echo $_POST['ophone']; } ?>"  /> <small>(Optional)</small> </label>

                    </div>

                    <div class="twoper">
                        <label for="profession">Profession
                        <input name="profession" type="text" id="profession" readonly="readonly" value="<?php if (isset($_POST['profession'])) { echo $_POST['profession']; } ?>" /> <small>(Optional)</small> </label>


                        <label for="education">Education
                        <input name="education" type="text" id="education" readonly="readonly" value="<?php if (isset($_POST['education'])) { echo $_POST['education']; } ?>" /> <small>(Optional)</small> </label>

                    </div>

                    <div class="twoper">
                        <label for="family">Family Information
                        <input name="family" type="text" id="family" readonly="readonly" value="<?php if (isset($_POST['family'])) { echo $_POST['family']; } ?>"  /> <small>(Optional)</small> </label>


                        <label for="associations">Associations
                        <input name="associations" type="text" id="associations" readonly="readonly" value="<?php if (isset($_POST['associations'])) { echo $_POST['associations']; } ?>" /> <small>(Optional)</small> </label>

                    </div>

                    <div class="oneper">
                        <label for="interests">Interests
                        <input name="interests" type="text" id="interests" readonly="readonly" value="<?php if (isset($_POST['interests'])) { echo $_POST['interests']; } ?>" /> <small>(Optional)</small> </label>

                    </div>

                    <div class="threeper">
                        <label for="status">Status
                        <select name="status" id="status" style="width:11em"> <?php if (isset($_POST['status'])) {  echo '<option selected="yes">' . $_POST['status'] . '</option>' ; }?> </select> </label>
                    </div>

                    <div class="twoper">
                        <input type="submit" name="ConfirmEditMember" value="Confirm Member" class="button"/>
                        <input type="submit" name="EditCreateMember" value="Edit Member" class="button"/>

                    </div>

                </fieldset>
            </form>

        </div>

    </body>
</html>
<?php
            require_once('App-End.php');
?>

<!-- Designed: Jose Trujillo - 2011 -->